package cn.tedu._05mvcboot03.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * @Author Justin Parker
 * @Date 2024/8/13 0013 18:47
 * @Version 1.0
 */
@Data
public class UserArticleDTO {

    @ApiModelProperty(value = "标题",required = true)
    @NotBlank(message = "标题不能为空")
    @Size(min = 1,max = 20 ,message = "标题长度必须在1-20之间")
    private String title;
    @ApiModelProperty(value = "内容",required = true)
    @NotBlank(message = "内容不能为空")
    @Size(min = 10,max = 500 ,message = "内容长度必须在10-500之间")
    private String content;
}
